﻿using Digitalmes.Domain.Entities.Sys;

namespace Digitalmes.Domain.Entities.Mes.Calendars;

/// <summary>
/// 班组成员
/// </summary>
[SugarTable("cal_team_member")]
public sealed class CalTeamMember : AuditedEntity
{
    /// <summary>
    /// 班组 Id
    /// </summary>
    public long TeamId { get; set; }

    /// <summary>
    /// 成员 Id
    /// </summary>
    public long MemberId { get; set; }

    /// <summary>
    /// 用户账号
    /// </summary>
    public string? Username { get; set; }

    /// <summary>
    /// 成员
    /// </summary>
    [Navigate(NavigateType.OneToOne, nameof(MemberId))]
    public SysUser? Member { get; set; }
}
